package com.qianfeng.teachdemo.ui;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ExpandableListView;

import com.qianfeng.teachdemo.R;
import com.qianfeng.teachdemo.adapter.ExpAdapter;
import com.qianfeng.teachdemo.bean.GroupBean;

import java.util.ArrayList;
import java.util.List;


public class ExpActivity extends ActionBarActivity {
    private ExpandableListView expListView;
    private List<GroupBean> list = new ArrayList<GroupBean>();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exp);
        expListView = (ExpandableListView)this.findViewById(R.id.expListView);
        ExpAdapter adapter = new ExpAdapter(this,list);
        expListView.setAdapter(adapter);

    }

}
